// @algorithm @lc id=100158 lang=cpp 
// @title is-unique-lcci


#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include "algm/algm.h"
using namespace std;
// @test("leetcode")=false
// @test("abc")=true
class Solution {
public:
    bool isUnique(string astr) {
        if(astr.length() <= 1) {
            return true;
        }
        sort(astr.begin(),astr.end());
        for(int i = 0;i < s.length()-1;s++) {
            if(s[i] == s[i+1]) {
                return false;
            }
        }
        return true;
    }
};